From a0e5cf67dd22c67d77644484efdbda3e5422df6d Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Fri, 22 Nov 2024 15:28:16 +0100 Subject: [PATCH] install-pkgconfig-without-lib-for-cross-compile Install architecture independent pkgconfig file in /usr/share/pkgconfig This prevents lintian warning pkg-config-unavailable-for-cross-compilation for the header only modules dune-istl, dune-localfunctions, dune-functions, and dune-typetree. Gbp-Pq: Name install-pkgconfig-without-lib-for-cross-compile --- cmake/modules/DuneProject.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/modules/DuneProject.cmake b/cmake/modules/DuneProject.cmake index 63d870a..ea94e31 100644 --- a/cmake/modules/DuneProject.cmake +++ b/cmake/modules/DuneProject.cmake @@ -532,8 +532,13 @@ endif()") install(FILES config.h.cmake DESTINATION share/${ProjectName}) endif() + if(_has_lib) + set(DUNE_INSTALL_PKGCONFIGDIR ${CMAKE_INSTALL_LIBDIR}) + else() + set(DUNE_INSTALL_PKGCONFIGDIR ${CMAKE_INSTALL_DATAROOTDIR}) + endif() # install pkg-config files - create_and_install_pkconfig(${DUNE_INSTALL_LIBDIR}) + create_and_install_pkconfig(${DUNE_INSTALL_PKGCONFIGDIR}) ########################### ### HEADER CONFIG FILEs ### -- 2.30.2